/* Parts Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Copyright (c) 2012 Tom Nielsen. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,
blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em,
font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl,
dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, button {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-family: "Arial", "Helvetica", sans-serif;
  color: #222;
  font-size: 13px;
  margin: 0;
  padding: 17px;
  direction: ltr;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: #15c;
  cursor: pointer;
}

a:visited {
  color: #61c;
}

a:active {
  color: #d14836;
}

strong, b {
  color: #000;
}

/*------------------------------------------------------------------
Component: Buttons
------------------------------------------------------------------*/
button {
  min-width: 72px;
  border: 1px solid #DCDCDC;
  color: #444;
  font-size: 11px;
  font-weight: bold;
  height: 27px;
  padding: 0 8px;
  line-height: 27px;
  border-radius: 2px;
  -webkit-transition: all 0.218s;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#f1f1f1));
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

button:hover {
  border: 1px solid #C6C6C6;
  color: #222;
  transition: all 0.0s;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#f1f1f1));
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
}

button:active {
  background: #f6f6f6 -webkit-gradient(linear, left top, left bottom, from(#f6f6f6), to(#f1f1f1));
  box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.2);
}

button:focus {
  outline: none;
  border: 1px solid #4d90fe;
}

button[disabled], button[disabled]:hover, button[disabled]:active {
  background: linear-gradient(#fafafa, #f4f4f4 40%, #e5e5e5);
  border-color: #aaa;
  color: #888;
  box-shadow: none;
}

/* Colored Buttons */
.kd-button-share {
  border: 1px solid #29691d;
  color: #FFF;
  text-shadow: 0px 1px rgba(0, 0, 0, 0.1);
  background-image: -webkit-gradient(linear, left top, left bottom, from(#3d9400), to(#398a00));
}

.kd-button-share:hover {
  border: 1px solid #404040;
  color: #FFF;
  text-shadow: 0px 1px rgba(0, 0, 0, 0.3);
  background-image: -webkit-gradient(linear, left top, left bottom, from(#3d9400), to(#368200));
}

.kd-button-share:active, .kd-button-share:focus:active {
  box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.3);
  background-image: -webkit-gradient(linear, left top, left bottom, from(#3d9400), to(#368200));
}

.kd-button-share:focus {
  border-color: #29691d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.kd-button-share:focus:hover {
  box-shadow: inset 0 0 0 1px #fff, 0px 1px 1px rgba(0, 0, 0, 0.1);
}

.kd-button-share[disabled], .kd-button-share[disabled]:hover,
.kd-button-share[disabled]:active {
  border: 1px solid #505050;
  color: #FFF;
  opacity: 0.5;
  text-shadow: 0px 1px rgba(0, 0, 0, 0.1);
  background-image: -webkit-gradient(linear, left top, left bottom, from(#3d9400), to(#398a00));
}

::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-button {
  height: 0px;
  width: 0px;
}

::-webkit-scrollbar-thumb {
  min-height: 28px;
  padding-top: 100px;
  background-clip: padding-box;
  background-color: rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: inset 1px 1px 0px rgba(0, 0, 0, 0.10), inset 0px -1px 0px rgba(0, 0, 0, 0.07);
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.4);
  -webkit-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.25);
}

::-webkit-scrollbar-thumb:active {
  -webkit-box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.35);
  background-color: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-track:hover {
  background-color: rgba(0, 0, 0, 0.05);
  -webkit-box-shadow: inset 1px 0px 0px rgba(0, 0, 0, 0.10);
}

::-webkit-scrollbar-track:active {
  background-color: rgba(0, 0, 0, 0.05);
  -webkit-box-shadow: inset 1px 0px 0px rgba(0, 0, 0, 0.14), inset -1px -1px 0px rgba(0, 0, 0, 0.07);
}

::-webkit-scrollbar-track-piece {
  background: white;
}

/*------------------------------------------------------------------
Component: Text Field
------------------------------------------------------------------*/
input {
  height: 29px;
  padding-left: 8px;
  color: #333;
  border: 1px solid #d9d9d9;
  border-top: 1px solid #c0c0c0;
  vertical-align: top;
  -webkit-border-radius: 1px;
}

input:hover:not([readonly]) {
  border: 1px solid #b9b9b9;
  border-top: 1px solid #a0a0a0;
  -webkit-box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.1);
}

input:focus {
  -webkit-box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.3);
  outline: none;
  border: 1px solid #4d90fe;
}

input[readonly] {
  background-color: #fdfdfd !important;
  color: #9d9d9d !important;
  border: 1px !important;
  box-shadow: none !important;
}

input:focus[readonly] {
  background-color: #fdfdfd !important;
  color: #9d9d9d !important;
  border: 1px !important;
  box-shadow: none !important;
}

label {
  line-height: 29px;
  font-weight: bold;
}

/*------------------------------------------------------------------
Component: Modal Dialog
------------------------------------------------------------------*/
.kd-modaldialog:not([hidden]) {
  opacity: 1.0;
  -webkit-transform: scale(1.0);
}

.kd-modaldialog {
  -webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  background: white;
  outline: 1px solid rgba(0, 0, 0, 0.2);
  padding: 30px 42px;
  width: 500px;
  height: auto;
  overflow: hidden;
  z-index: 100;
  opacity: 0.0;
  -webkit-transform: scale(1.05);
  -webkit-transition: all 0.218s;
}

h1.icon-label {
  vertical-align: 13px;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 300;
  color: #999;
  font-family: "Open sans", "Ariel", sans-serif;
  line-height: 24px;
  display: inline-block;
  margin-left: 13px;
}

h2, .h2 {
  font-size: 16px;
  line-height: 24px;
  font-weight: normal;
  color: #222;
  margin-bottom: 10px;
}

section > h2 {
  color: #666;
}

header {
  display: -webkit-box;
  width: 100%;
}

html {
  -webkit-user-select: none;
  cursor: default;
}

section {
  width: 600px;
  margin: 30px auto;
}

section {
  border: 1px solid #e5e5e5;
  background: #f9f9f9;
  padding: 20px 30px 20px 30px;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
  position: relative;
}

.box-spacer {
  -webkit-box-flex: 1;
}

.centered {
  text-align: center;
}

.alignleft {
  text-align: left;
}

.alignright {
  text-align: right;
}

.clickable {
  cursor: pointer;
}

.box {
  display: -webkit-box;
}

.selectable {
  -webkit-user-select: text;
  cursor: text;
}

.section-row {
  display: -webkit-box;
  -webkit-box-align: center;
  padding: 10px 0;
  border-top: 1px solid #EBEBEB;
}

.section-row button {
  margin-left: 20px;
}

.section-row:first-child,
.section-row.no-non-local-hosts {
  border-top: none;
}

.message {
  margin-bottom: 24px;
}

.mode-select-button-column {
  text-align: right;
}

.mode-select-button-column button {
  min-width: 72px;
}

td {
  vertical-align: middle;
}

.host-online.clickable:hover,
.host-online.clickable.child-focused {
  background-color: #f2f2f2;
}

.host-list-rename-icon,
.host-list-remove-icon {
  opacity: 0;
}

.section-row:hover .host-list-rename-icon,
.section-row.child-focused .host-list-rename-icon {
  opacity: 0.6;
}

.section-row:hover .host-list-remove-icon,
.section-row.child-focused .host-list-remove-icon {
  opacity: 0.3;
}

.host-list-rename-icon:hover {
  opacity: 1 !important;
}

.host-list-remove-icon:hover {
  opacity: 0.5 !important;
}

.host-list-edit {
  padding: 0 5px;
}

.host-list-main-icon {
  margin-right: 10px;
  vertical-align: middle;
}

.host-offline .host-list-label,
.host-offline .host-list-main-icon {
  opacity: 0.5;
}

button {
  white-space: nowrap;
}

.small-print {
  font-size: 13px;
  color: #AAA;
}


.prominent {
  color: #222;
}

.space-before {
  margin-top: 20px;
}

#dialog-container {
  position: fixed;
  top: 200px;
  left: 0;
  width: 100%;
  display: -webkit-box;
}

#dialog-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  opacity: 0.75;
}

* {
  box-sizing: border-box;
}

/*
 * Setting hidden on elements that match some rule overriding 'display' doesn't
 * do what you would expect unless this is made explicit (and !important).
 */
[hidden] {
  display: none !important;
}